Summary

A wrapper that holds an instance of any concrete type assignable to ['typeparamref']. Use this as a property type when you want the inspector to let you pick from all non-abstract implementations of an abstract class or interface.

public AnyOfType<Scatterer> MyScatterer { get; set; }

Serialization stores the concrete type name alongside the property values

Constructors

AnyOfType<T>

Properties

HasValue Returns true if Sandbox.AnyOfType`1.Value is not null.
Value The concrete instance, or null if no type is selected.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.